Page({
  data: {
    // 控制倒计时组件的显示和隐藏
    counDownVisible: false,
    time: 10,
  },
  // 1. 开始倒计时
  getSMSCode() {
    this.setData({
      counDownVisible: true,
    });
  },
  // 2. 结束倒计时
  onEnd() {
    this.setData({
      counDownVisible: false,
    });
  },
});
